package cn.lili.controller.feign;

import cn.lili.modules.distribution.client.DistributionSelectedGoodsClient;
import cn.lili.modules.distribution.service.DistributionSelectedGoodsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: ftyy
 * @date: 2022-01-14 10:36
 * @description: 分销选择商品Feign
 */
@RestController
@RequiredArgsConstructor
public class DistributionSelectedGoodsFeignController implements DistributionSelectedGoodsClient {

    private final DistributionSelectedGoodsService distributionSelectedGoodsService;

    @Override
    public boolean add(String distributionGoodsId) {
        return distributionSelectedGoodsService.add(distributionGoodsId);
    }

    @Override
    public boolean delete(String distributionGoodsId) {
        return distributionSelectedGoodsService.delete(distributionGoodsId);
    }

    @Override
    public boolean deleteByDistributionGoodsId(String distributionGoodsId) {
        return distributionSelectedGoodsService.deleteByDistributionGoodsId(distributionGoodsId);
    }
}
